.form-inline {
    &:after {
        content: "";
        display: block;
        clear: both;
    }
}

.form-group {
    float: none;
    display: table;
    margin-bottom: 10px;
    vertical-align: middle;
}

.form-label {
    box-sizing: border-box;
    width: 1%;
    white-space: nowrap;
    padding: 0 8px;
    color: #555;
    background-color: #eee;
}

.form-item {
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    background-color: #fff;
}

.form-label,
.form-item {
    display: table-cell;
    border: 1px solid #e6e6e6;
    font-size: 12px;
    vertical-align: middle;
    border-radius: 0;
    & .select-input {
        border-radius: 0;
    }
    &:not(:last-child) {
        border-right: none;
        & .select-input {
            border-right: none;
        }
    }
    &:first-child {
        border-radius: 4px 0 0 4px;
    }
    &:last-child {
        border-radius: 0 4px 4px 0;
        & .select-input {
            border-radius: 0 4px 4px 0;
        }
    }
}

@media screen and (min-width: 768px) {
    .form-group {
        float: left;
        display: inline-table;
        padding-right: 10px;
    }
    .form-label,
    .form-item {
        width: auto;
    }
}